import PublishTable from '../../../components/publish-manage/PublishTable'
import usePublish from '../../../components/publish-manage/usePublish'
import React from 'react'
import { Button } from 'antd'

export default function Unpublished() {
  const { dataSource, publishNews } = usePublish(1)
  return (
    <div>
      <PublishTable dataSource={dataSource} button={(item) => <Button type='primary' onClick={() => publishNews(item)}>发布</Button>}></PublishTable>
    </div>
  )
}
